import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
// 导入对应的路由



const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/discovery'
    },
    {
      // 发现音乐
      path: '/discovery',
      component:()=>import('@/views/home/discovery.vue')
    },
    {
      // 推荐歌单
      path: '/playlists',
      component:()=>import('@/views/playList/playlists.vue')
    },
    {
      // 推荐歌单
      path: '/playlist',
      name:"playlist",
      component: ()=>import('@/views/playList/playlist.vue')
    },
    {
      // 最新音乐
      path: '/songs',
      component: ()=>import('@/views/song/songs.vue')
    },
    {
      // mv区域
      path: '/mvs',
      component: ()=>import('@/views/mv/mvs.vue')
    },
    // mv详情
    {
      path: '/mv',
      name:'mv',
      component:()=>import('@/views/mv/mv.vue')
    },
    // 搜索结果页
    {
      path: '/result',
      name:'result',
      component: ()=>import('@/views/result/result.vue')
    },
    {
      path: '/myLove',
      name: 'myLove',
      component:()=>import('@/views/myLove/myLove.vue')
    }
  ]
})
export default router